
<include file="Public/ace_header" />
<div class="row">
    <div class="col-xs-12">
        <div class="row hidden-480 search">
            <form id="search-form">
                <div class="col-md-3 search-input-div">
                    <input type="text" class="col-md-12 search-input" name="searchMap[id]" id="id" value="{$_GET[searchMap][id]}" placeholder="ID"/>
                </div>
                <div class="col-md-3 search-input-div">
                    <select name="searchMap[transaction_type]" id="transaction_type" class="width-100 search-select">
                        <option value="" class="search-select-default-option">交易类型</option>
                        <option value="发起" <if condition ="$_GET[searchMap][transaction_type] eq '发起'"> selected </if>>发起</option>
                        <option value="购买" <if condition ="$_GET[searchMap][transaction_type] eq '购买'"> selected </if>>购买</option>
                        <option value="代卖" <if condition ="$_GET[searchMap][transaction_type] eq '代卖'"> selected </if>>代卖</option>
                    </select>
                </div>
                <div class="col-md-3 search-input-div">
                    <input type="text" class="col-md-12 search-input" name="searchMap[name]" id="name" value="{$_GET[searchMap][name]}" placeholder="名称"/>
                </div>
                <div class="col-md-3 col-md-offset-0 center search-input-div">
                    <button type="submit" class="btn btn-success btn-xs">查询</button>
                    <button class="btn btn-warning btn-xs" type="button" href="#" onclick="clearFind()">清空</button>
                </div>
            </form>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th class="center">
                            <label>
                                <input type="checkbox" class="ace" id="checkall"/>
                                <span class="lbl"></span>
                            </label>
                        </th>
                    <th >ID</th>
                    <th >发起人</th>
                    <th >筹单类型</th>
                    <th >交易类型</th>
                    <th >已筹人数</th>
                    <th >总人数</th>
                    <th >定制价格</th>
                    <th >众筹价格</th>
                    <th >代卖佣金</th>
                    <th >是否优惠</th>
                    <th >是否代卖</th>
                    <th >是否合单</th>
                    <th >状态</th>
                    <th >失效时间</th>
                    <th >名称</th>
                    <th >图片</th>
                    <th >wap详情</th>
                    <th >pc详情</th>
                    <th >H5</th>
                    <th >创建时间</th>
                    <th >更新时间</th>
                    <th >代卖情况</th>
                        <th class="center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                    <tr>
                        <td class="center">
                            <label>
                                <input type="checkbox" class="ace" name="chkid" value="{$vo['id']}"/>
                                <span class="lbl"></span>
                            </label>
                        </td>
                        <td >{$vo[id]}</td>
                        <td >{$vo[user_id]}</td>
                        <td ><php> echo D("Funding_type")->find($vo["funding_type"])["long_name"];</php></td>
                        <td >{$vo[transaction_type]}</td>
                        <td >{$vo[already_num]}</td>
                        <td >{$vo[total_num]}</td>
                        <td >{$vo[customized_price]}</td>
                        <td >{$vo[funding_price]}</td>
                        <td >{$vo[consignment_price]}</td>
                        <td >{$vo[is_budget]}</td>
                        <td >{$vo[is_consignment]}</td>
                        <td >{$vo[is_togethor]}</td>
                        <td >{$vo[state]}</td>
                        <td ><if condition="$vo[lose_time] neq 0">{$vo[lose_time]|default=''|date="Y-m-d H:i:s",###}</if></td>
                        <td >{$vo[name]}</td>
                        <td ><img src="__PUBLIC__/file/{$vo['img']}" width="120" height="60" /></td>
                        <td >{$vo[detail_wap]|html_entity_decode}</td>
                        <td >{$vo[detail_pc]|html_entity_decode}</td>
                        <td >{$vo[h5_link]}</td>
                        <td ><if condition="$vo[create_time] neq 0">{$vo[create_time]|default=''|date="Y-m-d H:i:s",###}</if></td>
                        <td ><if condition="$vo[update_time] neq 0">{$vo[update_time]|default=''|date="Y-m-d H:i:s",###}</if></td><td class="center"><a href="__MODULE__/fundingConsignment/list?searchMap[funding_id]={$vo['id']}">点击</a></td>
                            <td class="center">
                                <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                <if condition="$_GET['type'] neq '代卖'">
                                    <a class="" href="__MODULE__/FundingOrder/list?searchMap[funding_id]={$vo[name]}" >
                                        <button class="btn btn-xs btn-success" style="border: 1px;">
                                            <i class="icon-group"></i>
                                        </button>
                                    </a>
                                    <a class="" href="__MODULE__/Funding/update/id/{$vo['id']}" >
                                        <button class="btn btn-xs btn-info" style="border: 1px;">
                                            <i class="icon-edit"></i>
                                        </button>
                                    </a>
                                <else/>
                                    <a class="" href="__MODULE__/Funding/consignment/id/{$vo['id']}" onclick="return confirm('是否确认代卖该筹单?');">
                                        <button class="btn btn-xs btn-success" style="border: 1px;">
                                            <i class="icon-check"></i>
                                        </button>
                                    </a>
                                </if>
                                    
                                    <a href="{:U(detail, ['id'=>$vo['id']])}">
                                        <button class="btn btn-xs btn-warning" style="border: 1px;">
                                            <i class="icon-search" style="margin-right: 0px;"></i>
                                        </button>
                                    </a>
                                </div>
                                <div class="visible-xs visible-sm hidden-md hidden-lg">
                                    <div class="inline position-relative">
                                        <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
                                            <i class="icon-cog icon-only bigger-110"></i>
                                        </button>
                                        <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                            <li>
                                                <a href="{:U(detail, ['id'=>$vo['id']])}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                    <span class="yellow">
                                                        <i class="icon-search bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
            {$page}
        </div><!-- /.table-responsive -->
    </div><!-- /span -->
</div><!-- /row -->
<include file="Public/ace_footer" />